<div>
    <?php   
    if(null!=$this->photo){
        
            foreach($this->photo as $v){
                echo"<span><img src='".$v->getPathToMini()."'>\n";
                if($_SESSION['authUserId']==$this->user){
                    echo"<div><a href='#' onclick=\"document.location='?control=ava&photoId=".$v->getId()."&userId=".$this->user."'\">Make it Your Ava</a></div></span>";
                }
            }
        }else{echo"<div>This user has'nt got any photos</div></span>";}
    ?><?php
    $b=1;
    for($i=0; $i<$this->paginator; $i++){
        echo "<span><a href='#' onclick=\"document.location='?control=photo&user=".$this->user."&page=$b'\">$b</a></span>";
        }
    if(isset($_SESSION['authUserId'])){
        echo "<div><a href=\"#\" onclick=\"document.location='/?control=user&".$_SESSION['authUserId']."'\">My profile</a></div>";
    } else {
        echo "<div><a href='#' onclick=\"document.location='/'\">Main page</a></div>";
    }

    ?>
<div>
    
</div>